package com.innjia.sys.service.impl;

import com.innjia.sys.dao.HouseImageDao;
import com.innjia.sys.entity.HouseImageEntity;
import com.innjia.sys.service.HouseImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("houseImageService")
public class HouseImageServiceImpl implements HouseImageService {
	@Autowired
	private HouseImageDao houseImageDao;
	
	@Override
	public HouseImageEntity queryObject(String id){
		return houseImageDao.queryObject(id);
	}
	
	@Override
	public List<HouseImageEntity> queryList(Map<String, Object> map){
		return houseImageDao.queryList(map);
	}

    @Override
    public List<HouseImageEntity> queryListByBean(HouseImageEntity entity) {
        return houseImageDao.queryListByBean(entity);
    }
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return houseImageDao.queryTotal(map);
	}
	
	@Override
	public int save(HouseImageEntity houseImage){
		return houseImageDao.save(houseImage);
	}
	
	@Override
	public int update(HouseImageEntity houseImage){
        return houseImageDao.update(houseImage);
	}
	
	@Override
	public int delete(String id){
        return houseImageDao.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
        return houseImageDao.deleteBatch(ids);
	}

	@Override
	public List<HouseImageEntity> queryListByHouseId(String houseId) {
		return houseImageDao.queryListByHouseId(houseId);
	}
	
}
